<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>for语句</title>
  </head>
  <body>
    <div class="" id="app">
      <ul>
        <template id="" v-for="item of items">
          <li>{{item.title}}>>>>><span v-for="(key,val) of item">[{{$key}}--{{val}}]</span></li>
          <li>{{item.content}}</li>
        </template>
      </ul>
    </div>
    <script src="js/jquery-1.8.3.min.js" charset="utf-8"></script>
    <script src="js/vue.js" charset="utf-8"></script>
    <script type="text/javascript">
      var vm;
      $(function(){
        vm = new Vue({
          el:'#app',
          data:{
            items:[
              {title:'title1',content:'content11111'},
              {title:'title2',content:'content22222'}
            ]
          }
        })
      })
    </script>
  </body>
</html>
